﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace SmartPlant.Model.DbContext
{
    [SugarTable("CORRELATTS")]
    public class Correlatts
    {
        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CORRELATT_NUMBER", IsPrimaryKey = true)]
        public decimal CorrelattNumber { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "NUMBER_OF_ATTS")]
        public decimal? NumberOfAtts { get; set; }

        /// <summary>
        /// <see cref="Attributes.AttributeNumber"/>的集合，超过一个以逗号分割
        ///</summary>
        [SugarColumn(ColumnName = "ATTRIBUTES")]
        public string Attributes { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "DESCRIPTION")]
        public string Description { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "MARKER")]
        public string Marker { get; set; }

        #region 1

        /// <summary>
        /// 对应的若干个Attributes对象集合
        /// </summary>
        public Dictionary<int, Attribute> AttributesObjDic = new Dictionary<int, Attribute>();

        #endregion 1
    }
}
